﻿package mortal.game.view.systemHistory
{
    import mortal.game.manager.msgTip.*;
    import mortal.mvc.core.*;

    public class SysHistoryController extends Controller
    {

        public function SysHistoryController()
        {
            return;
        }// end function

        public function addHistroy(param1:Object, param2:MsgTypeImpl = null) : void
        {
            var _loc_3:* = cache.sysHis.addHistroy(param1.toString(), param2);
            var _loc_4:int = 0;
            if (param2)
            {
                _loc_4 = param2.type;
            }
            if (SysHistroyWindow.hasInstance() && !SysHistroyWindow.instance.isHide)
            {
                SysHistroyWindow.instance.addHistory(_loc_3, _loc_4);
            }
            return;
        }// end function

    }
}
